# -*- coding:utf-8 -*-
# @FileName  :per_checkinfolog.py
# @Time      :2020/12/23 13:36
# @Author    :Zhoujirong
# @Desc      :
from common.http_request import Request
from biz.support.urls import ServerUrl

class PerCheckInfoRequest:
    @classmethod
    def get_page(cls,curPage,
        maxSize,
        search_EQ_clientName,
        search_EQ_certType,
        search_EQ_certNo,
        search_EQ_qryReason,
        search_EQ_status,
        search_EQ_queryFormat,
        search_EQ_operator,
        search_EQ_operOrg,
        search_GTE_LTE_operTime_DATE_RANGE,cookie):
        '''检索'''
        data = {
            'curPage':curPage,
            'maxSize':maxSize,
            'search_EQ_clientName':search_EQ_clientName,
            'search_EQ_certType':search_EQ_certType,
            'search_EQ_certNo':search_EQ_certNo,
            'search_EQ_qryReason':search_EQ_qryReason,
            'search_EQ_status':search_EQ_status,
            'search_EQ_queryFormat':search_EQ_queryFormat,
            'search_EQ_operator':search_EQ_operator,
            'search_EQ_operOrg':search_EQ_operOrg,
            'search_GTE_LTE_operTime_DATE_RANGE':search_GTE_LTE_operTime_DATE_RANGE
        }
        req = Request(ServerUrl.per_checkinfolog_getpage_url,params=data,headers=cookie)
        return req.get()

    @classmethod
    def detail(cls,id,cookie):
        data = {
            'id':id
        }
        req = Request(ServerUrl.per_checkinfolog_detail_url,params=data,headers=cookie)
        return req.get()

    @classmethod
    def findbyid(cls,id,cookie):
        data = {
            'id':id
        }
        req = Request(ServerUrl.per_checkinfolog_findbyid_url,data=data,headers=cookie)
        return req.post()

    @classmethod
    def getpagerecord(cls,curPage,maxSize,id,cookie):
        data = {
            'curPage':curPage,
            'maxSize':maxSize,
            'id':id
        }
        req = Request(ServerUrl.per_checkinfolog_getpagerecord_url,params=data,headers=cookie)
        return req.get()






if __name__ == "__main__":
    pass